package cn.dz.heima03;

/**
 * @ClassName Student
 * @package: cn.dz.heima03
 * @Description 学生类
 * @Author dz
 * @Date 2025/2/6 9:22
 * @Version 1.0
 * 为了键盘录入数据方便，把学生类中的成员变量都定义为String类型
 **/
public class Student {
    private String name;
    private String age;

    public Student() {
    }

    public Student(String name, String age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}
